const mongoose = require('mongoose')
const {model, Schema} = mongoose

// 其他字典配置
const dictSchema = new Schema({
    category:{type:Array,default:['类目1','类目2']}, //类目名
    designation:{type:Array,default:['鲜花1','鲜花2','鲜花3']},   //品名
    grade:{type:Array,default:['A','B','C']}, //等级
}, {
    timestamps: {
        createdAt: 'created',
        updatedAt: 'updated'
    }
})

module.exports = model('Dict', dictSchema,'dict')